<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<p>请你登陆!</p>
<button id="login">一键登录</button>
<script src="../js/jquery-3.3.1.min.js"></script>
<script>
    $("#login").click(function () {
        var phone = "9999"
        var pwd = "2222"
        $.post("/sdkd/login/adminLogin.do","phone="+phone + "&pwd=" + pwd ,function (data) {
            console.log(data)
            location.href ="/sdkd/admin/html/main.html"
        })
    })
</script>
</body>
</html>